const http = require('http');

const envConfig = require('../../config/env/config_development');

module.exports = {
    getVerifyInfo : getVerifyInfo
}



function getVerifyInfo(mid) {


    http.get(envConfig.api.getVerifyInfo+mid, function(res) {
        var size = 0;
        var chunks = [];
        res.on('data', function(chunk){
            size += chunk.length;
            chunks.push(chunk);
        });
        res.on('end', function(){

            var data = Buffer.concat(chunks, size);
            return data.toString();

        });
    });
}

